// src/api/apps.js
import request from './request';

// list
export const appsListApi = async () => {
    return await request('GET', '/api/apps/list',{});
};
// detail
export const appDetailApi = async (id) => {
    return await request('GET', `/api/apps/detail/${id}`,{});
};

// create
export const appsCreateApi = async (form) => {
    return await request('POST', '/api/apps/create', form);
};

export const appsUpdateApi = async (id,form) => {
    return await request('PUT', `/api/apps/update/${id}`, form);
};

export const appStatisticsApi = async (id) => {
    return await request('GET', `/api/apps/statistics/${id}`,{});
};